
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome</title>
<link href="__HOME_JS__/js/jquery/new/jquery-ui.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__HOME_CSS__/newdsn/css/table.css">
<script type="text/javascript" src="__HOME_JS__/js/jquery.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/jquery-ui.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/libs.js"></script>
<script type="text/javascript" src="__HOME_JS__/default/js/skin.js"></script>
<script type="text/javascript">$(function(){LIBS.colorMoney('.color','minus')})</script>
<script type="text/javascript">var TODAY=new Date().getTime();</script>
<script type="text/javascript" src="__HOME_JS__/default/js/report.js"></script>
<script type="text/javascript" src="__HOME_JS__/default/js/history.js"></script>

</head>
<body class="skin_blue">
<div class="main history">
<div class="search">
<span class="title">日期范围</span>
<span id="date"><input id="begin" value="{$begin}"> — <input id="end" value="{$end}"></span>
<input type="button" class="btn today" value=" 查 询 " onclick="queryMemberHistory();">
<input type="button" class="btn" value="本星期" onclick="dt.week(0);queryMemberHistory();">
<input type="button" class="btn" value="上星期" onclick="dt.week(-1);queryMemberHistory();">
<input type="button" class="btn" value="本月" onclick="dt.month(0);queryMemberHistory();">
<input type="button" class="btn" value="上月" onclick="dt.month(-1);queryMemberHistory();">
</div>
<table class="list table">
<thead><tr><th class="date">日期</th><th class="count">注数</th><th class="amount">下注金额</th><th class="cm">退水</th><th class="dividend">盈亏</th></tr></thead>
<tbody>

<foreach name="list" item="vo">
<tr class="">

<td class="time"><?php echo date('Y-m-d',$vo['add_time'])?><br><?php echo date('H:i:s',$vo['add_time'])?></td>
<td class="period"><span class="lottery">{$vo.num}</span></td>
<td class="contents">{$vo.money}</td>
<td class="range">{$vo.rebate}</td>
<td class="range <?php if($vo['win']<0){?>minus<?php }?>">{$vo.win}</td>
</tr>
</foreach>

</tbody>
<tfoot>
<tr><th>合计</th><td>{$sum_num}</td><td class="money">{$sum_money}</td><td class="money">{$sum_tui}</td><td class="result color"><?php echo sprintf('%.2f',$sum_win);?></td></tr>
</tfoot>
</table>
</div>
{$page}
</body></html>